package myjava.statico;

public class Root4 {

   public static void main(String[] args) {

      Foo.getNameStatic();
      new Foo().getNameInstance();
   }
}

class Foo {

   static private String NAME = "fabs";

   static public void getNameStatic() {
      System.out.println(NAME);
      System.out.println(Foo.NAME);
   }

   public void getNameInstance() {
      System.out.println(NAME);
      System.out.println(this.NAME);
      System.out.println(Foo.NAME);
   }
}
